Xbasic

INET::Socket::Read Method

Syntax

Result_Flag as L = Read(Data BYREF as C [, Length as N [, Timeout as N [, ReadExact as L]]])

Arguments

Result_Flag

TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).

Data

The data received from the connection.

Length

Optional. Default = -1 (no limit). The number of characters to read.

Timeout

Optional. Default = -1 (no timeout). The number of seconds before the method returns.

ReadExact

Logical

Description

The INET::Socket::Read() method reads characters from socket into string.

See Also